package com.bkaka.service.impl;

import com.bkaka.dao.ExamCategoryDao;
import com.bkaka.entity.ExamCategory;
import com.bkaka.service.ExamCategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by maxiaoqiang on 2018/9/3.
 */

@Service
public class ExamCategoryImpl implements ExamCategoryService {

    @Autowired
    private ExamCategoryDao categoryDao;

    @Override
    public List<ExamCategory> findAll() {
        return categoryDao.findAll();
    }

    public List<ExamCategory> findCategorySubject() {
        return categoryDao.findCategorySubject();
    }

    @Override
    public void create(ExamCategory category) {
        categoryDao.create(category);
    }

    @Override
    public boolean delete(Integer id) {
        return categoryDao.delete(id);
    }

    @Override
    public void update(ExamCategory category) {

        categoryDao.update(category);
    }
}
